﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Default2 : System.Web.UI.Page
{
    ForumDataContext fd = new ForumDataContext();
    Register regUser;

    protected void Page_Load(object sender, EventArgs e)
    {
        regUser = new Register(fd);

    }
    protected void btnRegister_Click(object sender, EventArgs e)
    {
        if (regUser.registerNewUser(txtNewUser.Text, txtNewUserPassword.Text)) Response.Redirect(Request.Url.ToString());
    }
}